package com.homeworkp8.Worker2Test;

public class Teacher extends Employee {

    double Dailybonues;
    double Date;

    public Teacher(String name, double dailySalary, int day) {
        super(name, dailySalary, day);
    }

    //（3）教师除基本工资外有课酬（元/天）
    @Override
    public void printSalary() {
        System.out.println(getName()+"的年薪为:\t " + (getDailySalary()*getDay() + Dailybonues*getDay()));
    }

    public double getDailybonues() {
        return Dailybonues;
    }

    public void setDailybonues(double dailybonues) {
        Dailybonues = dailybonues;
    }

    public double getDate() {
        return Date;
    }

    public void setDate(double date) {
        Date = date;
    }
}
